#include "include.h"

InputReceiver::InputReceiver(bool* keyReference)
{
    keys = keyReference;
     for(int x=0; x < irr::KEY_KEY_CODES_COUNT; x++)
        keys[x] = false;
}
bool InputReceiver::OnEvent(const irr::SEvent& event)
{
    if(event.EventType == irr::EET_KEY_INPUT_EVENT){
        keys[event.KeyInput.Key] = event.KeyInput.PressedDown;
        return true;
    }
    return false;
}
